package curso.spring.utilConnection.connection;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;


public class ConnectionFactory {

	public static Conectable getConnection(){
		ApplicationContext app = new FileSystemXmlApplicationContext("applicationContext.xml");
		Conectable con = (Conectable)app.getBean("connection");
		return con;
	}
	

		
	
	
	

	
}
